/*
 * Item.h
 *
 *  Created on: 09.12.2009
 *      Author: Sergej Schmidt
 */

#ifndef ITEM_H_
#define ITEM_H_

#include <iostream>
#include <fstream>
#include <list>
#include <cstring>

#include "GameManager.h"
#include "Parser.h"
#include "SwsoException.h"

using namespace std;

typedef enum _EItemType
{
	IT_WEAPON,
	IT_ARMOR,
	IT_PROJECTIL,
	IT_FOOD,
	IT_OTHER
} EItemType;

struct ItemValues
{
	unsigned int	Id;
	EItemType		Type;
	unsigned int	Bay;
	unsigned int	Sale;
};

struct Item
{
	ItemValues		Values;
	char			Name[32];
	char			Subname[32];
	char			Note[128];
	// TODO Attrebute
};

class Items
{
	Item*	m_pItems;
	int		m_nSize;
public:
	Items();
	~Items();
	void Load();
	void Localize();
	void DebugSave();
};
#endif /* ITEM_H_ */
